import shutil
import os

path = "./"

for root, dirs, files in os.walk(path):
    for name in dirs:
        for zroot, zdirs, zfiles in os.walk(name):
            for zname in zfiles:
                shutil.move(os.path.join(name,zname),"../")
                